<script>
export default{
    data:()=>({
        account:'Abc31510',
        password:'123321'
    }),methods:{
        toLogin(){
            console.log('登录中.....');
        }
    },
    expose:['account','toLogin']
}
</script>

<template>
    账号：<input type="text" v-model="account">
    <br>
    密码：<input type="text" v-model="password">
</template>